package com.ujoku.UrlHelper;

import com.ujoku.request.UrlHelperForm;
import com.ujoku.view.domain.UrlHelperView;

import java.util.HashMap;

/**
 * Created by suggestion on 2015/5/15.
 */
public class UrlLinkOutHelper extends UrlHelperBase {
    @Override
    public UrlHelperView getView(UrlHelperForm form) {
        this.view = new UrlHelperView();

        view.setAction("http");

        view.setPairs(new HashMap<>());
        view.getPairs().put("url", form.getUrl());

        return view;
    }

}
